/*
 * Package il.ac.biu.cs.grossmm.api.sql
 * File DataSource.java
 * Created on Aug 30, 2006
 *
 */
package il.ac.biu.cs.grossmm.api.sql;

import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;

import javax.sql.DataSource;

/**
 * Interface used to bind framework components with a JDBC database
 */
public interface SqlDataSource extends DataSource {
	/**
	 * Gets the set of generated keys for the last SQL operation
	 * 
	 * @param connection
	 *            SQL connection
	 * @return the set of generated keys for the last SQL operation
	 * @throws SQLException
	 */
	ResultSet getGeneratedKeys(Connection connection) throws SQLException;
}
